<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>vue模版</title>
	</head>
	<body>
		<div id="demo1">
			
		</div>
		<template id="labelName">
			<div>
				
			</div>
		</template>
	</body>
</html>
<script src="js/vue.js"></script>
<script type="text/javascript">
	var v1=new Vue({
		el:"#demo1",
		data:{
			
		},
		components:{
			'labelName':{
				data(){
					return{
						msg:"message"
					}
				},
				methods:{
					
				},
				template:'#labelName'
			}
		}
		
	});
</script>
